Accusoft.PrintPro8.ActiveX
Add Bitmaps

PrintPRO™ lets you print Device Independent Bitmaps (DIB) and Device Dependent Bitmaps (DDB).

Bitmaps can be printed stretched (or resized) inside a rectangular area with or without the aspect ratio being maintained. The ability to automatically maintain the bitmap's aspect ratio makes it easy to display large document images correctly on the printed page.

Adding a DIB

To add a DIB, the hDIB Property must first be set to a valid Windows DIB handle. The ImagXpress control exports a Windows DIB handle. Next, use the PrintDIB Method to print the DIB. The DIBHeight Property and DIBWidth Property return the height and width of the DIB. If the OwnDIB Property is True, PrintPRO will delete the DIB after it is printed.

Adding a DDB

To print a DDB, the Picture Property must first be set to a valid bitmap. The ImagXpress control exports bitmaps using a Picture Property or the Picture property can be set using the LoadPicture function in Visual Basic. Next, use the PrintPicture Method to print the DDB. The PictureHeight Property and PictureWidth Property Picture return the height and width of the DDB. If you want to print a Device Dependent Bitmap using a handle to the bitmap (HBITMAP), you can first set the Picture Property using the SetPictureBMP Method then print the bitmap using the PrintPicture Method.

Adding a Transparent Bitmap

Bitmaps can be printed transparently. To print a bitmap transparently, set the PictureTransparent Property to True, then set the PictureTransparentColor Property to the color in the image that you want transparent.

 

 


©2019. Accusoft Corporation. All Rights Reserved.

Send Feedback